#!/usr/bin/env node

const koa = require('koa'),
      logger = require('koa-logger'),
      task = require('./lib/task.js'),
      log = console.log;

const app = new koa();

app.use(logger());

app.use(async (ctx,next)=>{//M-hello
  ctx.body='hello koa'+await task()+'res';
});
app.listen(8080);
